package my.jieh.tips.tiger;

/**
 * <p>Title: Core Java Technologies Tech Tips</p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2002</p>
 *
 * <p>Company: Blueimp</p>
 *
 * @author jieh
 * @version 1.0
 */
public class VarargsWhichOne {

  VarargsWhichOne(Integer... size) {
     System.out.println("Var Args version.");
  }

  VarargsWhichOne(int i, int j) {
     System.out.println("Version with int args.");

  }

  VarargsWhichOne(Integer i, Integer j) {
     System.out.println("Version with Integer args.");
  }

  public static void main(String[] args) {
     System.out.println("Call w/ two arg:2,3");
     new VarargsWhichOne(2, 3);
     System.out.println("Call w/ Integer two arg: 2,3");
     new VarargsWhichOne(new Integer(2), new Integer(3));
  }
}
